import axios from 'axios';
import BasicConfig from './BasicConfig'
const CLOUD_API = (window as any)['env'];

export default class Retrieve {
    public static PathPlan(
        data: any,
        event: (res: any) => void
    ) {
        axios.post(
            CLOUD_API.URL_REACT + "/api/navigation/cal",
            {
                ...data
            }
        ).then(
            res => event(res)
        ).catch(BasicConfig.RequestError)
    }
}